package com.ruoyi.api.abuwx.service.impl;

import com.ruoyi.abuwx.domain.AbuwxPersonageStatistics;
import com.ruoyi.abuwx.service.IAbuwxPersonageStatisticsService;
import com.ruoyi.api.abuwx.service.StatiService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.satoken.StpClientUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zouhuu
 * @description 客户端 个人统计模块 服务层
 * @date 2022/07/04 16:21:13
 */
@Service
public class StatiServiceImpl implements StatiService {



    @Autowired
    private IAbuwxPersonageStatisticsService iAbuwxPersonageStatisticsService;



    /**
     * 个人统计
     * @return
     */
    @Override
    public AjaxResult rechargeStati() {
        AbuwxPersonageStatistics Stati = new AbuwxPersonageStatistics();
        Stati.setUid(StpClientUtil.getLoginIdAsLong());
        return AjaxResult.success(iAbuwxPersonageStatisticsService.selectAbuwxPersonageStatisticsList(Stati));
    }
}
